Maze (alt) [David Winter, 199x].txt 644 B

123456789101112
  1. Maze, by David Winter
  2. Drawing a random maze like this one consists in drawing random diagonal
  3. lines. There are two possibilities: right-to-left line, and left-to-right
  4. line. Each line is composed of a 4*4 bitmap. As the lines must form non-
  5. circular angles, the two bitmaps won't be '/' and '\'. The first one
  6. (right line) will be a little bit modified. See at the end of this source.
  7. The maze is composed of 16 lines (as the bitmaps are 4 pixels high), each
  8. line consists of 32 bitmaps.
  9. Bitmaps are drawn in random mode. We choose a random value (0 or 1).
  10. If it is 1, we draw a left line bitmap. If it is 0, we draw a right one.